#include "../app/app_mqtt.h"
#include "log/log.h"
#include <unistd.h>

//接收到数据回调
int recv_cb(char * json){
    log_debug("接收到的远程数据是：%s\n",json);
    return 0;
}

int main(int argc, char const *argv[])
{
    app_mqtt_init();
    app_mqtt_registRecvCallback(recv_cb);
    app_mqtt_send("{\"connect_type\":1,\"device_id\":\"5858\",\"msg\":\"61626364\"}");
    //防止发不完
    sleep(100);
    app_mqtt_close();
    return 0;
}


